package com.mapper;

public interface PersonMapper {

    int deleteByPrimaryKey(Long id);

    <Person> int insert(Person record);

    <Person> int insertSelective(Person record);

    <Person> Person selectByPrimaryKey(Long id);

    <Person> int updateByPrimaryKeySelective(Person record);

    <Person> int updateByPrimaryKey(Person record);

    <Person> Person findPersonById(Integer i);

    @Select("select * from mybatis.tb_person where id =#{id}")
    @Results({@Result(column = "card_id",property = "card",one = @One(select = "com.mapper.IdcardMapper.selectIdCardById"))})
    <Person>
    Person selectPersonById(int id);
}
